﻿@model AgendaDoEstudante.Models.Lista

@{
    ViewBag.Title = "Create";
}

<h2>NOVA LISTA</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Lista</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserId)
            @Html.ValidationMessageFor(model => model.UserId)
        </div>

        <p>
            <input type="submit" value="Criar Lista" />
        </p>
    </fieldset>
}

<div>
    <ul class="phrp">
    <li>@Html.ActionLink("Voltar", "Index")</li>
        </ul>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
